#include <CommandRotate.h>
Inheritance diagram for CommandRotate:

Public Member Functions | |
| CommandRotate (float angle, OSGWindows *osgwind) | |
| CommandRotate (float angle, OSGWindows *osgwind, TraffEduObject *obj) | |
| bool | execute () |
| bool | unexecute () |
Private Attributes | |
| OSGWindows * | osgwind_ |
| vector< TraffEduObject * > | rotatedObjs_ |
| float | angle_ |
| int | rightCLK |
| TraffEduObject * | obj_ |
Definition at line 7 of file CommandRotate.h.
|
||||||||||||
|
A constructor. Initializes osgwind_ and rightCLK variables. It is called if the rotation operation is done from the menubar.
Definition at line 2 of file CommandRotate.cpp. References angle_, OSGWindows::getSelectedObjects(), osgwind, osgwind_, rightCLK, and rotatedObjs_. |
|
||||||||||||||||
|
A constructor. Initializes osgwind_, obj_, and rightCLK variables. It is called if the rotation operation is done from the menubar.
Definition at line 10 of file CommandRotate.cpp. References angle_, obj_, osgwind, osgwind_, rightCLK, and rotatedObjs_. |
|
|
do the rotation operation.
Implements Command. Definition at line 20 of file CommandRotate.cpp. References angle_, and rotatedObjs_. |
|
|
undo the rotation operation.
Implements Command. Definition at line 32 of file CommandRotate.cpp. References angle_, and rotatedObjs_. |
|
|
a private variable. It shows how much the selected objects are rotated. Definition at line 27 of file CommandRotate.h. Referenced by CommandRotate(), execute(), and unexecute(). |
|
|
a private variable. It is used to hold the rotated object. Definition at line 39 of file CommandRotate.h. Referenced by CommandRotate(). |
|
|
a private variable. It is initialized with the unique OSGWindows instance. Definition at line 15 of file CommandRotate.h. Referenced by CommandRotate(). |
|
|
a private variable. It shows if the CommandRotate is called from the RightClickMenu or not. Definition at line 33 of file CommandRotate.h. Referenced by CommandRotate(). |
|
|
a private vector of TraffEduObjects. It holds the rotated objects. Definition at line 21 of file CommandRotate.h. Referenced by CommandRotate(), execute(), and unexecute(). |
1.4.6-NO